package ciyuan.Gui.DamageShow;

import net.minecraft.client.particle.IParticleFactory;
import net.minecraft.client.particle.Particle;
import net.minecraft.client.world.ClientWorld;

import javax.annotation.Nullable;

/**
 * @author 150149
 */
public class DamageParticleFactory implements IParticleFactory<DamageParticleData> {

    @Nullable
    @Override
    public Particle createParticle(DamageParticleData damageParticleData, ClientWorld clientWorld, double x, double y, double z, double speedX, double speedY, double speedZ) {
        DamageParticle damageParticle = new DamageParticle(clientWorld,x,y,z, damageParticleData.speedX, damageParticleData.speedY, damageParticleData.speedZ);
        return damageParticle;
    }
}
